package com.jintian.smart.kernel.core.exception;

import com.jintian.smart.kernel.core.code.ErrorCode;

/**
 * 业务逻辑异常,全局异常拦截后统一返回ResponseCodeConst.SYSTEM_ERROR
 */
public class SmartException extends RuntimeException {
    public SmartException() {
    }

    public SmartException(ErrorCode errorCode) {
        super(errorCode.getMsg());
    }

    public SmartException(String message) {
        super(message);
    }

    public SmartException(String message, Throwable cause) {
        super(message, cause);
    }

    public SmartException(Throwable cause) {
        super(cause);
    }

    public SmartException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }
}
